<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/22
 * Time: 16:52
 */
namespace app\model;

use think\Model;

class CardZan extends Model{

    // 设置当前模型对应的完整数据表名称  帖子点赞表
    protected $table = 'card_zan';

    //模型连接数据库
    protected $connection  = 'wq';

    //关联用户表
    public function getUser(){
        return  $this->hasMany('Userinfo','id','uid');
    }
}